﻿import pao = require("./pao/public");
import paoClient = require('./pao/client/client');

let clientApp:pao.application  = require('./config/appConfig').defaultObject;

let loggerFactory = new paoClient.remoteFactory(pao.baseLogger, "remoteCall", "fileLogService");
let logger = <pao.baseLogger>loggerFactory.getValue();
logger.log(new Date(), "测试一下服务器远程调用", "information");

// 启动客户端
paoClient.startClient(clientApp, ()=> {
    pao.logToServer("测试一下服务器日志", "information");
});
